<html>
<head>
<title>Docs For Class DOMUtil</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">smt2</td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
        
                                    
                                                                      		  [ <a href="../classtrees_smt2.html" class="menu">class tree: smt2</a> ]
		  [ <a href="../elementindex_smt2.html" class="menu">index: smt2</a> ]
		  	    [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="200" class="menu">
      <b>Packages:</b><br />
              <a href="../li_smt2.html">smt2</a><br />
              <a href="../li_PegasusPHP.html">PegasusPHP</a><br />
              <a href="../li_PHPMailer.html">PHPMailer</a><br />
            <br /><br />
                        <b>Files:</b><br />
      	  <div class="package">
			<a href="../smt2/_class.cluster.php.html">		class.cluster.php
		</a><br>
			<a href="../smt2/_class.domutil.php.html">		class.domutil.php
		</a><br>
			<a href="../smt2/_class.kmeans.php.html">		class.kmeans.php
		</a><br>
			<a href="../smt2/_class.point.php.html">		class.point.php
		</a><br>
			<a href="../smt2/_class.prettydate.php.html">		class.prettydate.php
		</a><br>
			<a href="../smt2/_define.php.html">		define.php
		</a><br>
			<a href="../smt2/_functions.array.php.html">		functions.array.php
		</a><br>
			<a href="../smt2/_functions.db.php.html">		functions.db.php
		</a><br>
			<a href="../smt2/_functions.php.html">		functions.php
		</a><br>
			<a href="../smt2/_functions.url.php.html">		functions.url.php
		</a><br>
			<a href="../smt2/_messages.php.html">		messages.php
		</a><br>
	  </div><br />
      
      
            <b>Classes:</b><br />
        <div class="package">
		    		<a href="../smt2/Cluster.html">Cluster</a><br />
	    		<a href="../smt2/DOMUtil.html">DOMUtil</a><br />
	    		<a href="../smt2/KMeans.html">KMeans</a><br />
	    		<a href="../smt2/Point.html">Point</a><br />
	    		<a href="../smt2/prettyDate.html">prettyDate</a><br />
	  </div>
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: DOMUtil</h1>
Source Location: /class.domutil.php<br /><br />


<table width="100%" border="0">
<tr><td valign="top">

<h3><a href="#class_details">Class Overview</a></h3>
<pre>DOMDocument
   |
   --DOMUtil</pre><br />
<div class="description">Extended DOM utilities.</div><br /><br />






        
</td>



<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../smt2/DOMUtil.html#methodcreateDiv">createDiv</a></li>
    <li><a href="../smt2/DOMUtil.html#methodcreateExternalScript">createExternalScript</a></li>
    <li><a href="../smt2/DOMUtil.html#methodcreateExternalStyleSheet">createExternalStyleSheet</a></li>
    <li><a href="../smt2/DOMUtil.html#methodcreateInlineScript">createInlineScript</a></li>
    <li><a href="../smt2/DOMUtil.html#methodcreateInlineStyleSheet">createInlineStyleSheet</a></li>
    <li><a href="../smt2/DOMUtil.html#methodscriptExists">scriptExists</a></li>
  </ul>
</td>

</tr></table>
<hr />

<table width="100%" border="0"><tr>





<td valign="top">
<h3>Inherited Methods</h3>
<div class="tags">
<h4>Class: DOMDocument (Internal Class)</h4>
<dl>
    <dt>
    constructor __construct ( [$version = ], [$encoding = ] )
  </dt>
  <dd>
    
  </dd>
    <dt>
    adoptNode ( $source )
  </dt>
  <dd>
    
  </dd>
    <dt>
    appendChild ( $newChild )
  </dt>
  <dd>
    
  </dd>
    <dt>
    C14N ( [$exclusive = ], [$with_comments = ], [$xpath = ], [$ns_prefixes = ] )
  </dt>
  <dd>
    
  </dd>
    <dt>
    C14NFile ( $uri, [$exclusive = ], [$with_comments = ], [$xpath = ], [$ns_prefixes = ] )
  </dt>
  <dd>
    
  </dd>
    <dt>
    cloneNode ( $deep )
  </dt>
  <dd>
    
  </dd>
    <dt>
    compareDocumentPosition ( $other )
  </dt>
  <dd>
    
  </dd>
    <dt>
    createAttribute ( $name )
  </dt>
  <dd>
    
  </dd>
    <dt>
    createAttributeNS ( $namespaceURI, $qualifiedName )
  </dt>
  <dd>
    
  </dd>
    <dt>
    createCDATASection ( $data )
  </dt>
  <dd>
    
  </dd>
    <dt>
    createComment ( $data )
  </dt>
  <dd>
    
  </dd>
    <dt>
    createDocumentFragment (  )
  </dt>
  <dd>
    
  </dd>
    <dt>
    createElement ( $tagName, [$value = ] )
  </dt>
  <dd>
    
  </dd>
    <dt>
    createElementNS ( $namespaceURI, $qualifiedName, [$value = ] )
  </dt>
  <dd>
    
  </dd>
    <dt>
    createEntityReference ( $name )
  </dt>
  <dd>
    
  </dd>
    <dt>
    createProcessingInstruction ( $target, $data )
  </dt>
  <dd>
    
  </dd>
    <dt>
    createTextNode ( $data )
  </dt>
  <dd>
    
  </dd>
    <dt>
    getElementById ( $elementId )
  </dt>
  <dd>
    
  </dd>
    <dt>
    getElementsByTagName ( $tagName )
  </dt>
  <dd>
    
  </dd>
    <dt>
    getElementsByTagNameNS ( $namespaceURI, $localName )
  </dt>
  <dd>
    
  </dd>
    <dt>
    getFeature ( $feature, $version )
  </dt>
  <dd>
    
  </dd>
    <dt>
    getNodePath (  )
  </dt>
  <dd>
    
  </dd>
    <dt>
    getUserData ( $key )
  </dt>
  <dd>
    
  </dd>
    <dt>
    hasAttributes (  )
  </dt>
  <dd>
    
  </dd>
    <dt>
    hasChildNodes (  )
  </dt>
  <dd>
    
  </dd>
    <dt>
    importNode ( $importedNode, $deep )
  </dt>
  <dd>
    
  </dd>
    <dt>
    insertBefore ( $newChild, [$refChild = ] )
  </dt>
  <dd>
    
  </dd>
    <dt>
    isDefaultNamespace ( $namespaceURI )
  </dt>
  <dd>
    
  </dd>
    <dt>
    isEqualNode ( $arg )
  </dt>
  <dd>
    
  </dd>
    <dt>
    isSameNode ( $other )
  </dt>
  <dd>
    
  </dd>
    <dt>
    isSupported ( $feature, $version )
  </dt>
  <dd>
    
  </dd>
    <dt>
    load ( $source, [$options = ] )
  </dt>
  <dd>
    
  </dd>
    <dt>
    loadHTML ( $source )
  </dt>
  <dd>
    
  </dd>
    <dt>
    loadHTMLFile ( $source )
  </dt>
  <dd>
    
  </dd>
    <dt>
    loadXML ( $source, [$options = ] )
  </dt>
  <dd>
    
  </dd>
    <dt>
    lookupNamespaceUri ( $prefix )
  </dt>
  <dd>
    
  </dd>
    <dt>
    lookupPrefix ( $namespaceURI )
  </dt>
  <dd>
    
  </dd>
    <dt>
    normalize (  )
  </dt>
  <dd>
    
  </dd>
    <dt>
    normalizeDocument (  )
  </dt>
  <dd>
    
  </dd>
    <dt>
    registerNodeClass ( $baseClass, $extendedClass )
  </dt>
  <dd>
    
  </dd>
    <dt>
    relaxNGValidate ( $filename )
  </dt>
  <dd>
    
  </dd>
    <dt>
    relaxNGValidateSource ( $source )
  </dt>
  <dd>
    
  </dd>
    <dt>
    removeChild ( $oldChild )
  </dt>
  <dd>
    
  </dd>
    <dt>
    renameNode ( $node, $namespaceURI, $qualifiedName )
  </dt>
  <dd>
    
  </dd>
    <dt>
    replaceChild ( $newChild, $oldChild )
  </dt>
  <dd>
    
  </dd>
    <dt>
    save ( $file )
  </dt>
  <dd>
    
  </dd>
    <dt>
    saveHTML (  )
  </dt>
  <dd>
    
  </dd>
    <dt>
    saveHTMLFile ( $file )
  </dt>
  <dd>
    
  </dd>
    <dt>
    saveXML ( [$node = ] )
  </dt>
  <dd>
    
  </dd>
    <dt>
    schemaValidate ( $filename )
  </dt>
  <dd>
    
  </dd>
    <dt>
    schemaValidateSource ( $source )
  </dt>
  <dd>
    
  </dd>
    <dt>
    setUserData ( $key, $data, $handler )
  </dt>
  <dd>
    
  </dd>
    <dt>
    validate (  )
  </dt>
  <dd>
    
  </dd>
    <dt>
    xinclude ( [$options = ] )
  </dt>
  <dd>
    
  </dd>
  </dl>
</div>
</td>

</tr></table>
<hr />

<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line <a href="../__filesource/fsource_smt2__class.domutil.php.html#a6">6</a>]<br />
Extended DOM utilities.<br /><br /></div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />


<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">

  <hr />
	<a name="methodcreateDiv"></a>
	<h3>method createDiv <span class="smalllinenumber">[line <a href="../__filesource/fsource_smt2__class.domutil.php.html#a69">69</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string createDiv(
string
$id, [string
$content = &quot;&quot;])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Creates a DIV element.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>HTML element: &lt;div id=&quot;$id&quot;&gt;$content&lt;/div&gt;</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$id</b>&nbsp;&nbsp;</td>
        <td>DIV id</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$content</b>&nbsp;&nbsp;</td>
        <td>DIV content (plain text) (default: none)</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcreateExternalScript"></a>
	<h3>method createExternalScript <span class="smalllinenumber">[line <a href="../__filesource/fsource_smt2__class.domutil.php.html#a13">13</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string createExternalScript(
string
$url)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Creates an external script element.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>HTML element: &lt;script type=&quot;text/javascript&quot; src=&quot;$url&quot;&gt;&lt;/script&gt;</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$url</b>&nbsp;&nbsp;</td>
        <td>script URL</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcreateExternalStyleSheet"></a>
	<h3>method createExternalStyleSheet <span class="smalllinenumber">[line <a href="../__filesource/fsource_smt2__class.domutil.php.html#a40">40</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string createExternalStyleSheet(
string
$url)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Creates an external stylesheet element.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>HTML element: &lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; href=&quot;$url&quot; /&gt;</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$url</b>&nbsp;&nbsp;</td>
        <td>stylesheet URL</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcreateInlineScript"></a>
	<h3>method createInlineScript <span class="smalllinenumber">[line <a href="../__filesource/fsource_smt2__class.domutil.php.html#a27">27</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string createInlineScript(
string
$cdata)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Creates an inline script element.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>HTML element: &lt;script type=&quot;text/javascript&quot;&gt;$cdata&lt;/script&gt;</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$cdata</b>&nbsp;&nbsp;</td>
        <td>javascript code (should be wrapped in a CDATA section)</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcreateInlineStyleSheet"></a>
	<h3>method createInlineStyleSheet <span class="smalllinenumber">[line <a href="../__filesource/fsource_smt2__class.domutil.php.html#a55">55</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string createInlineStyleSheet(
string
$styles)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Creates an inline stylesheet element.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>HTML element: &lt;style type=&quot;text/css&quot;&gt;$styles&lt;/style&gt;</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$styles</b>&nbsp;&nbsp;</td>
        <td>CSS styles</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodscriptExists"></a>
	<h3>method scriptExists <span class="smalllinenumber">[line <a href="../__filesource/fsource_smt2__class.domutil.php.html#a83">83</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>boolean scriptExists(
string
$source)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Checks if a javascript file exists in the DOM,  by comparing the provided $source with the script's &quot;src&quot; attribute.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>TRUE on succes or FALSE on failure</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$source</b>&nbsp;&nbsp;</td>
        <td>JavaScript source attribute</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
</div><br />


        <div class="credit">
		    <hr />
		    Documentation generated on Thu, 30 Sep 2010 18:26:43 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>